<!--
 * @Author: your name
 * @Date: 2020-12-30 11:29:38
 * @LastEditTime: 2020-12-30 11:48:53
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \basiccss\data\table3.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>边框</title>
    <style>
        /*
            边框间距
            设置单元格的间距，设置间距上下10px，左右50px
        */
        /* table{
            border-spacing: 0;
            border: 1px solid #cccccc;
        } */

        /*
            边框合并
            默认表格边框之间是有间距的。以下示例将边框合并并且形成细线表格
        */
        table{
            width: 60vw;
            height: 60vh ;
            border-collapse: collapse;
            border: 1px solid #dddddd;
            empty-cells: hide;
            background: url(hsq.jpg);
            color: white;
            background-size: cover;
            text-align: center;
        }
        table caption{
            color: #000000;
            background: #bdc3c7;
        }

    </style>
</head>
<body>
    <table class="table" border="1">
        <caption>哈士奇的成绩列表</caption>
        <thead>
            <th>数学</th>
            <th>语文</th>
            <th>英语</th>
        </thead>
        <tbody>
            <tr>
                <td>100</td>
                <td>100</td>
                <td>100</td>
            </tr>
            <tr>
                <td>150</td>
                <td>150</td>
                <td>150</td>
            </tr>
            <tr>
                <td>150</td>
                <td>150</td>
                <td>150</td>
            </tr>
        </tbody>
    </table>
</body>
</html>